import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import VueLazyLoad from 'vue-lazyload'
// 图片懒加载
Vue.use(VueLazyLoad, {
  // 配置懒加载图片
  loading: require('@/assets/images/placeholder.gif')
})
// 按需导入
import 'element-ui/lib/theme-chalk/index.css'
import {
  Button,
  Input,
  Menu,
  MenuItem,
  Carousel,
  CarouselItem,
  Backtop,
  Icon,
  Form,
  FormItem,
  MessageBox,
  Message,
  Rate,
  Checkbox,
  CheckboxButton,
  CheckboxGroup,
  Table,
  TableColumn,
} from "element-ui"
Vue.use(Button)
Vue.use(Input)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(Backtop)
Vue.use(Icon)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Rate)
Vue.use(Checkbox)
Vue.use(CheckboxButton)
Vue.use(CheckboxGroup)
Vue.use(Table)
Vue.use(TableColumn)


// 提示框配置
Vue.prototype.$msgbox = MessageBox
Vue.prototype.$alert = MessageBox.alert
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$prompt = MessageBox.prompt
Vue.prototype.$message = Message



Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
